let newsModel = require("../services/newsmodel.js");
module.exports = {
    renderIndex:async ctx=>{
        await ctx.render("newsindex.html");
     },
     renderNewsList:async ctx=>{
         await ctx.render("newslist.html");
     },
     getdata:ctx=>{
        // 输出新闻列表数据
       let data =  newsModel.getdata();
       ctx.body = data;
     }
}